import { createFetcher } from '@coreland/ky';

export const http = createFetcher({
  prefixUrl: import.meta.env.PUBLIC_API_BASE_URL || '',
})

http.on('401', () => {
  // 处理未授权错误，例如跳转到登录页面
})